module.exports = {
  outputDir: "./dist",
  publicPath: process.env.NODE_ENV !== 'development' ? '/finance-products-web' : '/',
  css: {
    loaderOptions: {
      less: {
        lessOptions: {
          javascriptEnabled: true
        }
      }
    }
  },
  devServer: {
    proxy: {
      '/': {
        target: 'https://www.lslandjym.top/api', // 后端API地址，部署时请替换
        // target: 'http://127.0.0.1:3000', // 后端API地址，部署时请替换
        changeOrigin: true
      }
    }
  }
}; 